package ooday02;
/** 测试继承 */
public class ExtendsTest {
    public static void main(String[] args) {
                                  /**继承     继承      继承           班级名              学号  */
        Student ww = new Student("王五",18,"青岛市","JSD2302","001");
        ww.eat();//继承
        ww.sleep();//继承
        ww.sayHi();//继承
        ww.study();//学习
                                 /**继承      继承    继承           工资  */
        Teacher ls = new Teacher("李四",18,"北京",6500.00);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();//教学
                                /**继承        继承    继承          职位/职称  */
        Doctor LDH = new Doctor("刘德华",26,"香港","骨科主任");
        LDH.eat();
        LDH.sleep();
        LDH.sayHi();
        LDH.cut();//开刀
    }
}
